#include <QQmlApplicationEngine>
#include <QQmlContext>
#include <QApplication>
#include "./src/ScreenshotHelper.h"

int main(int argc, char *argv[])
{
    QApplication app(argc, argv);
    ScreenshotHelper Screenshot;
    QQmlApplicationEngine engine;
    engine.rootContext()->setContextProperty("g_screenShot", &Screenshot);
    engine.load(QUrl(QStringLiteral("qrc:/qml/main.qml")));

    if (engine.rootObjects().isEmpty())
    {
        return -1;
    }

    return app.exec();
}
